class CreateProjects < ActiveRecord::Migration
  def self.up
    create_table :projects do |t|
      t.column :parent_id, :int
      t.column :tracker_id, :int
      t.column :name, :string
      t.column :description, :string
      t.column :start_date, :datetime
      t.column :end_date, :datetime
      t.column :iteration_length, :int
      t.column :progress_reports, :boolean
      t.column :created_at, :datetime
      t.column :updated_at, :datetime
      t.column :created_by, :string
      t.column :updated_by, :string
    end
  end

  def self.down
    drop_table :projects
  end
end
